/* App.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f7f7;
  color: #333;
  line-height: 1.6;
}

.app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.header h1 {
  font-size: 2.5rem;
  color: #e91e63;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.2rem;
  color: #7b68ee;
  font-weight: 500;
}

.container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 40px;
}

.video-grid-container {
  width: 100%;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.video-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}
/* video-grid-container */
.hover-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
  gap: 12px;
}

.hover-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 30px;
  border: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.download-btn {
  background: #ff7043;
  color: white;
}

.download-btn:hover {
  background: #ff5722;
  transform: translateY(-2px);
}

.favorite-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.favorite-btn:hover, .favorite-btn.active {
  background: #ffeb3b;
  color: #333;
}

.favorite-btn.active {
  font-weight: 600;
}

.video-info {
  padding: 18px 15px;
}

.video-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

.video-info p {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 12px;
  min-height: 40px;
}

.high-definition {
  display: inline-block;
  background: #ff4081;
  color: white;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 15px;
  font-weight: 500;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination button, .pagination span {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: white;
  color: #444;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  min-width: 40px;
  text-align: center;
}

.pagination button:hover:not(:disabled), 
.pagination button.active {
  background: #7b68ee;
  color: white;
  border-color: #7b68ee;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination span {
  cursor: default;
}

.footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px 0;
  color: #777;
  font-size: 0.95rem;
  border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 15px;
  }
  
  .header {
    margin-bottom: 25px;
  }
  
  .pagination {
    gap: 5px;
  }
  
  .pagination button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}